<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2019/4/14
  Time: 22:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false"%>
<html>
<head>
    <title>首页</title>
</head>
<body>
<%
    HttpSession session=request.getSession();
    if(session.getAttribute("json")==null){
%>
    <a href="https://cas.dgut.edu.cn?appid=javaee">登录</a>
<% }
    else{
        String s =null;
        if(session.getAttribute("json")!=null) {
            s = (String) session.getAttribute("json");
        }
            out.println(s);
%>
    <a href="https://cas.dgut.edu.cn/logout?callback=http://localhost:8080/hello">退出</a>
<% } %>

</body>
</html>
